//
// api.js
// vue3-element-admin
//
// Created by 区区电脑 on 2023/04/11.
//


import request from "@/request"


// 添加
export function AddDebugInfo(data = {}) {
    return request({url: '/api/DebugInfo/AddDebugInfo', method: 'post', data})
}

// 删除
export function DeleteDebugInfo(params = {}) {
    return request({url: '/api/DebugInfo/DeleteDebugInfo', method: 'delete', params})
}

// 修改
export function UpdateDebugInfo(data = {}) {
    return request({url: '/api/DebugInfo/UpdateDebugInfo', method: 'put', data})
}

// 分页
export function GetDebugPageList(params = {}, data = {}) {
    return request({url: '/api/DebugInfo/GetDebugPageList', method: 'post', params, data})
}

// 详情
export function GetDebugInfo(params = {}) {
    return request({url: '/api/DebugInfo/GetDebugInfo', method: 'get', params})
}

/**
 /**
 * 查询程序列表
 * @param data
 * @returns {Promise | Promise<unknown> | *}
 * @constructor
 */
export function GetProgramList(data = {}) {
    return request({url: "/api/Program/GetProgramList", method: "post", data})
}

/**
 * 获取用户列表
 * @param data
 * @returns {*}
 * @constructor
 */
export function GetUserList(data = {}) {
    return request({url: '/api/SysUser/GetUserList', method: 'POST',  data})
}

/**
 * 添加操作日志
 * @param data
 * @returns {Promise | Promise<unknown> | *}
 * @constructor
 */
export function AddDebugLog(data) {
    return request({url: "/api/DebugLog/AddDebugLog", method: "post", data})
}

/**
 * 查询操作日志
 * @param params
 * @returns {Promise | Promise<unknown> | *}
 * @constructor
 */
export function GetDebugLogList(params) {
    return request({url: "/api/DebugLog/GetDebugLogList", method: "get", params})
}
